#include "gamewindow.h"

GameWindow::GameWindow(QWidget *parent) :
    QWidget(parent)
{
    graphscene = new QGraphicsScene(this);
    graphview = new QGraphicsView(graphscene, this);
    graphview->setGeometry(0,0, 27*20, 27*20);
    setFixedSize(27*20, 27*20);

//    bc = new QBoobleControl();
//    QPushButton *cmd = new QPushButton("Add",0);
//    graphscene->addWidget(cmd);
//    graphscene->addWidget(bc)->show();

    for(int i = 0; i <20; i++)
    {
        booblevector.push_back(new QBoobleControl());
    }
    for(int i = 0; i < booblevector.size(); i++)
    {
        QGraphicsProxyWidget *gwi = graphscene->addWidget(booblevector[i]);
        gwi->setPos(i*26, i);
//        gwi->show();


    }
    QPushButton *cmd = new QPushButton("gw");
    graphscene->addWidget(cmd);
//    connect(cmd, SIGNAL(clicked()), )
}
